package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.model.common.dtos.NewsAuthDto;
import com.heima.model.common.pojos.wemedia.WmNews;
import com.heima.model.common.vos.NewsAuthVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author 陈辉
 * @data 2024 10:27
 */
@Mapper
public interface WmNewsMapper extends BaseMapper<WmNews> {
    IPage<NewsAuthVo> listVo(IPage<NewsAuthVo> page, @Param("dto") NewsAuthDto dto,@Param("now") Date now);
}
